@echo off
hdc shell mount -o rw,remount /
setlocal enabledelayedexpansion

for /f "tokens=1,2" %%a in (push_list.txt) do (
    set local_file=%%a
    :: 将'/'替换成'\'
    set "win_local_file=!local_file:/=\!"
    set device_path=%%b

    if exist !win_local_file! (
        if not "!device_path!" == "" (
            echo "send !win_local_file! ===> !device_path!"
            hdc file send "!win_local_file!" "!device_path!"
        ) else (
            echo "'!device_path!' invalid path"
        )
    ) else (
        echo "!win_local_file! is not exist!!"
    )
)
